package com.wlhse.controller;

import com.wlhse.dto.SupervisionTaskDto;
import com.wlhse.service.SupervisionTaskService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller("SupervisionTask")
@RequestMapping("/api/v3")
public class SupervisionTaskController {
    @Resource
    private SupervisionTaskService supervisionTaskService;
    @RequestMapping(value = "/querySupervisionTask", method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
    @ResponseBody
    public String querySupervisionTask(@ModelAttribute SupervisionTaskDto supervisionTaskDto)
    {
        return supervisionTaskService.querySupervisionTask(supervisionTaskDto);
    }
}
